<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BOSS Afterburner: Draw.cxx Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BOSS Afterburner
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Draw_8cxx_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Draw.cxx</div>  </div>
</div><!--header-->
<div class="contents">
<a href="Draw_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Draw_8h.html">Functions/Draw.h</a>&quot;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="RangePair_8h.html">Containers/RangePair.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="File_8h.html">Functions/File.h</a>&quot;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="TerminalIO_8h.html">Functions/TerminalIO.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;RooFit.h&quot;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;TStyle.h&quot;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespaceBOSS__Afterburner.html">BOSS_Afterburner</a>;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a59a43fb1263f6b03edfa0191254581a2">   11</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">BOSS_Afterburner::Draw::DrawAndSave</a>(TH1&amp; hist, <span class="keyword">const</span> <span class="keywordtype">char</span>* saveas, Option_t* opt,</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;                                         TString logScale)</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;  hist.Draw(opt);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">SaveCanvas</a>(saveas, gPad, logScale);</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;}</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a94aeb8325ae6a1a6a645f93e453c3824">   19</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">BOSS_Afterburner::Draw::DrawAndSave</a>(TH1D&amp; hist, <span class="keyword">const</span> <span class="keywordtype">char</span>* saveas, TString logScale)</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;{</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">DrawAndSave</a>(hist, saveas, <span class="stringliteral">&quot;ep&quot;</span>, logScale);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;}</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a776db6d6efd1d9cdc6aa3e20e7bf7c1d">   25</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">BOSS_Afterburner::Draw::DrawAndSave</a>(TH2D&amp; hist, <span class="keyword">const</span> <span class="keywordtype">char</span>* saveas, TString logScale)</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">DrawAndSave</a>(hist, saveas, <span class="stringliteral">&quot;colz&quot;</span>, logScale);</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;}</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a7283d906c240708bf785d645b28a13e2">   31</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">BOSS_Afterburner::Draw::DrawAndSave</a>(TTree* tree, <span class="keyword">const</span> <span class="keywordtype">char</span>* varexp, <span class="keyword">const</span> <span class="keywordtype">char</span>* selection,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;                                         Option_t* opt, TString logScale)</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  tree-&gt;Draw(varexp, selection, opt);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s_%s&quot;</span>, tree-&gt;GetName(), varexp), gPad, logScale);</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;}</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">   39</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">BOSS_Afterburner::Draw::SaveCanvas</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* saveas, TVirtualPad* pad, TString logScale)</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a3cf768f515ced7b0f68b80b0d5ce0371">TerminalIO::IsEmptyPtr</a>(pad)) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ad25116c085b660e7559d875021d277ff">SetLogScale</a>(logScale, pad);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  pad-&gt;SaveAs(<a class="code" href="namespaceBOSS__Afterburner_1_1File.html#a63b29ac0116fe7f1815a29a647bde2d6">File::SetOutputFilename</a>(saveas));</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;}</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a31262f951c66a19cac81add9f56dd777">   48</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#a31262f951c66a19cac81add9f56dd777">BOSS_Afterburner::Draw::DrawDifference</a>(TH1* histToDraw, TH1* histToSubtract, Option_t* opt,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                                            <span class="keyword">const</span> <span class="keywordtype">char</span>* setLog)</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keywordflow">if</span>(!gPad) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  gPad-&gt;Clear();</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  histToDraw-&gt;Scale(-1.);</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  histToDraw-&gt;Add(histToSubtract);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  histToSubtract-&gt;SetLineColor(kWhite);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="comment">// histToSubtract-&gt;SetMarkerColor(kWhite);</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  TString option(opt);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keywordflow">if</span>(dynamic_cast&lt;TH1F*&gt;(histToDraw))</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    histToSubtract-&gt;Draw(option.Data());</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    option += <span class="stringliteral">&quot;&quot;</span>;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  }</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  histToDraw-&gt;Draw(option.Data());</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">BOSS_Afterburner::Draw::SaveCanvas</a>(Form(<span class="stringliteral">&quot;%s&quot;</span>, histToDraw-&gt;GetName()), gPad, setLog);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;}</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#ad25116c085b660e7559d875021d277ff">   68</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ad25116c085b660e7559d875021d277ff">BOSS_Afterburner::Draw::SetLogScale</a>(TString logScale, TVirtualPad* pad)</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;{</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="comment">// * Check arguments * //</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="keywordflow">if</span>(<a class="code" href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a3cf768f515ced7b0f68b80b0d5ce0371">BOSS_Afterburner::TerminalIO::IsEmptyPtr</a>(pad)) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  logScale.ToLower();</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="comment">// * Set log scale * //</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  pad-&gt;SetLogx(logScale.Contains(<span class="stringliteral">&quot;x&quot;</span>));</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;  pad-&gt;SetLogy(logScale.Contains(<span class="stringliteral">&quot;y&quot;</span>));</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  pad-&gt;SetLogz(logScale.Contains(<span class="stringliteral">&quot;z&quot;</span>));</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a51e26f6bf3c302f28e0bc4a13cc3fc63">   79</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#a51e26f6bf3c302f28e0bc4a13cc3fc63">BOSS_Afterburner::Draw::IndicateFitRange</a>(<span class="keyword">const</span> YAML::Node&amp; conf)</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;{</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; fitdef = conf[<span class="stringliteral">&quot;Ranges&quot;</span>][<span class="stringliteral">&quot;fit&quot;</span>];</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; draw   = conf[<span class="stringliteral">&quot;Settings&quot;</span>][<span class="stringliteral">&quot;Indicate fit range&quot;</span>];</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordflow">if</span>(!fitdef) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <span class="keywordflow">if</span>(!draw) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keywordflow">if</span>(!draw.as&lt;Bool_t&gt;()) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <a class="code" href="classRangePair.html">RangePair</a> fit = fitdef;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;  <span class="keyword">auto</span> line = <span class="keyword">new</span> TLine;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  line-&gt;SetLineWidth(5);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;  line-&gt;SetLineColor(kGreen);</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*line, fit.<a class="code" href="classRangePair.html#a64f719d03f14e528234950c6f47eb1e1">X1</a>(), 0., fit.<a class="code" href="classRangePair.html#a4c315589a5113e21971e1a817a9e7b04">X2</a>(), 0.);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  line-&gt;Draw();</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a4fb6151d132dfd63025e514dd3d091ee">   96</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#a4fb6151d132dfd63025e514dd3d091ee">BOSS_Afterburner::Draw::Indicate3SigmaRange</a>(<span class="keyword">const</span> YAML::Node&amp; conf)</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="keywordflow">if</span>(!gPad) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; massdef  = conf[<span class="stringliteral">&quot;3-sigma range&quot;</span>][<span class="stringliteral">&quot;mass&quot;</span>];</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; widthdef = conf[<span class="stringliteral">&quot;3-sigma range&quot;</span>][<span class="stringliteral">&quot;width&quot;</span>];</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;  <span class="keywordflow">if</span>(!massdef) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordflow">if</span>(!widthdef) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="keyword">auto</span> mass  = massdef.as&lt;Double_t&gt;();</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  <span class="keyword">auto</span> width = widthdef.as&lt;Double_t&gt;();</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  <span class="keyword">auto</span> left = <span class="keyword">new</span> TLine;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  left-&gt;SetLineStyle(kDotted);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  left-&gt;SetLineColor(kGray + 2);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;  <span class="keyword">auto</span> right  = <span class="keyword">new</span> TLine(*left);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  <span class="keyword">auto</span> middle = <span class="keyword">new</span> TLine(*left);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  middle-&gt;SetLineColor(kBlack);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;  middle-&gt;SetLineWidth(2);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;  <span class="keywordtype">double</span> x1, y1, x2, y2;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  gPad-&gt;Update();</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  gPad-&gt;GetRangeAxis(x1, y1, x2, y2);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  x1 = mass - 3 * width;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;  x2 = mass + 3 * width;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*left, x1, y1, x1, y2);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*middle, mass, y1, mass, y2);</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*right, x2, y1, x2, y2);</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;  left-&gt;Draw();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  middle-&gt;Draw();</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  right-&gt;Draw();</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;}</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#ac89a92dfe4a51c9d2278b6aedca00a6c">  130</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ac89a92dfe4a51c9d2278b6aedca00a6c">BOSS_Afterburner::Draw::IndicateMassWindow</a>(<span class="keyword">const</span> YAML::Node&amp; conf)</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;{</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;  <span class="keywordflow">if</span>(!gPad) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="keyword">const</span> <span class="keyword">auto</span>&amp; range = conf[<span class="stringliteral">&quot;Mass window&quot;</span>];</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;  <span class="keywordflow">if</span>(!range || !range.IsSequence() || range.size() != 2) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  <span class="keyword">auto</span> left = <span class="keyword">new</span> TLine;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  left-&gt;SetLineStyle(kDotted);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  left-&gt;SetLineColor(kGray + 2);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <span class="keyword">auto</span> right = <span class="keyword">new</span> TLine(*left);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="keywordtype">double</span> x1, y1, x2, y2;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  gPad-&gt;Update();</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;  gPad-&gt;GetRangeAxis(x1, y1, x2, y2);</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;  x1 = range[0].as&lt;Double_t&gt;();</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;  x2 = range[1].as&lt;Double_t&gt;();</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*left, x1, y1, x1, y2);</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">SetLineCoordinates</a>(*right, x2, y1, x2, y2);</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;  left-&gt;Draw();</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  right-&gt;Draw();</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;}</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">  155</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">BOSS_Afterburner::Draw::SetLineCoordinates</a>(TLine&amp; line, Double_t x1, Double_t y1, Double_t x2,</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                                                Double_t y2)</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;{</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  line.SetX1(x1);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  line.SetX2(x2);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  line.SetY1(y1);</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;  line.SetY2(y2);</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;}</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="namespaceBOSS__Afterburner_1_1Draw.html#a06c05fe477845e0ab25af8d2a509dbc1">  164</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespaceBOSS__Afterburner_1_1Draw.html#a06c05fe477845e0ab25af8d2a509dbc1">BOSS_Afterburner::Draw::PlotStatsOnFrame</a>(RooAbsData&amp; obj, RooPlot* frame)</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;{</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;  <span class="keywordflow">if</span>(!gStyle-&gt;GetOptStat()) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  <span class="keywordflow">if</span>(!frame) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <span class="keyword">using namespace </span><a class="code" href="namespaceRooFit.html">RooFit</a>;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;  obj.statOn(frame, Layout(0.25, 0.55, .32), Color(kBlue + 2), Format(<span class="stringliteral">&quot;NU&quot;</span>, AutoPrecision(0)));</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;  <span class="keyword">auto</span> att = frame-&gt;getAttText();</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;  <span class="keywordflow">if</span>(!att) <span class="keywordflow">return</span>;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  att-&gt;SetTextSize(.035);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  att-&gt;SetTextColor(kBlue + 2);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div class="ttc" id="namespaceBOSS__Afterburner_1_1TerminalIO_html_a3cf768f515ced7b0f68b80b0d5ce0371"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1TerminalIO.html#a3cf768f515ced7b0f68b80b0d5ce0371">BOSS_Afterburner::TerminalIO::IsEmptyPtr</a></div><div class="ttdeci">bool IsEmptyPtr(void *ptr)</div><div class="ttdoc">Auxiliary function that you can used in other functions to check if a pointer that you fed it is a nu...</div><div class="ttdef"><b>Definition:</b> <a href="TerminalIO_8cxx_source.html#l00040">TerminalIO.cxx:40</a></div></div>
<div class="ttc" id="RangePair_8h_html"><div class="ttname"><a href="RangePair_8h.html">RangePair.h</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_ad25116c085b660e7559d875021d277ff"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#ad25116c085b660e7559d875021d277ff">BOSS_Afterburner::Draw::SetLogScale</a></div><div class="ttdeci">void SetLogScale(TString logScale=&quot;&quot;, TVirtualPad *pad=gPad)</div><div class="ttdoc">Helper function that allows you to set the log scale of a TPad or TCanvas. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00068">Draw.cxx:68</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_ab9b47ef9b8006087ad8ac15b6d46aac8"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#ab9b47ef9b8006087ad8ac15b6d46aac8">BOSS_Afterburner::Draw::DrawAndSave</a></div><div class="ttdeci">void DrawAndSave(const char *saveas, Option_t *opt, const char *logScale, ARGS... args)</div><div class="ttdoc">End recursion for DrawAndSaveRecursion. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8h_source.html#l00070">Draw.h:70</a></div></div>
<div class="ttc" id="Draw_8h_html"><div class="ttname"><a href="Draw_8h.html">Draw.h</a></div></div>
<div class="ttc" id="classRangePair_html_a4c315589a5113e21971e1a817a9e7b04"><div class="ttname"><a href="classRangePair.html#a4c315589a5113e21971e1a817a9e7b04">RangePair::X2</a></div><div class="ttdeci">double X2() const</div><div class="ttdef"><b>Definition:</b> <a href="RangePair_8h_source.html#l00016">RangePair.h:16</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="classRangePair_html_a64f719d03f14e528234950c6f47eb1e1"><div class="ttname"><a href="classRangePair.html#a64f719d03f14e528234950c6f47eb1e1">RangePair::X1</a></div><div class="ttdeci">double X1() const</div><div class="ttdef"><b>Definition:</b> <a href="RangePair_8h_source.html#l00015">RangePair.h:15</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1File_html_a63b29ac0116fe7f1815a29a647bde2d6"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1File.html#a63b29ac0116fe7f1815a29a647bde2d6">BOSS_Afterburner::File::SetOutputFilename</a></div><div class="ttdeci">const char * SetOutputFilename(const char *filenameWithoutExt, const char *ext=nullptr)</div><div class="ttdoc">This function creates a file name from the settings in FrameworkSettings.h and from the file name (wi...</div><div class="ttdef"><b>Definition:</b> <a href="File_8cxx_source.html#l00021">File.cxx:21</a></div></div>
<div class="ttc" id="namespaceRooFit_html"><div class="ttname"><a href="namespaceRooFit.html">RooFit</a></div></div>
<div class="ttc" id="File_8h_html"><div class="ttname"><a href="File_8h.html">File.h</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_adee26ab251a1f534e7dfcfa01bce0bd1"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#adee26ab251a1f534e7dfcfa01bce0bd1">BOSS_Afterburner::Draw::SaveCanvas</a></div><div class="ttdeci">void SaveCanvas(const char *saveas, TVirtualPad *pad=gPad, TString logScale=&quot;&quot;)</div><div class="ttdoc">Helper function that allows you to save a TPad or TCanvas. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00039">Draw.cxx:39</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_html"><div class="ttname"><a href="namespaceBOSS__Afterburner.html">BOSS_Afterburner</a></div><div class="ttdoc">Header with a namespace Settings that contains all settings for the analysis framework. </div><div class="ttdef"><b>Definition:</b> <a href="Draw_8h_source.html#l00017">Draw.h:17</a></div></div>
<div class="ttc" id="classRangePair_html"><div class="ttname"><a href="classRangePair.html">RangePair</a></div><div class="ttdef"><b>Definition:</b> <a href="RangePair_8h_source.html#l00006">RangePair.h:6</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_ae4c6e205f2eadf2c419b13253709e4f6"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#ae4c6e205f2eadf2c419b13253709e4f6">BOSS_Afterburner::Draw::SetLineCoordinates</a></div><div class="ttdeci">void SetLineCoordinates(TLine &amp;line, Double_t x1, Double_t y1, Double_t x2, Double_t y2)</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00155">Draw.cxx:155</a></div></div>
<div class="ttc" id="TerminalIO_8h_html"><div class="ttname"><a href="TerminalIO_8h.html">TerminalIO.h</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_ac89a92dfe4a51c9d2278b6aedca00a6c"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#ac89a92dfe4a51c9d2278b6aedca00a6c">BOSS_Afterburner::Draw::IndicateMassWindow</a></div><div class="ttdeci">void IndicateMassWindow(const YAML::Node &amp;conf)</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00130">Draw.cxx:130</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_a06c05fe477845e0ab25af8d2a509dbc1"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#a06c05fe477845e0ab25af8d2a509dbc1">BOSS_Afterburner::Draw::PlotStatsOnFrame</a></div><div class="ttdeci">void PlotStatsOnFrame(RooAbsData &amp;obj, RooPlot *frame)</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00164">Draw.cxx:164</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_a4fb6151d132dfd63025e514dd3d091ee"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#a4fb6151d132dfd63025e514dd3d091ee">BOSS_Afterburner::Draw::Indicate3SigmaRange</a></div><div class="ttdeci">void Indicate3SigmaRange(const YAML::Node &amp;conf)</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00096">Draw.cxx:96</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_a51e26f6bf3c302f28e0bc4a13cc3fc63"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#a51e26f6bf3c302f28e0bc4a13cc3fc63">BOSS_Afterburner::Draw::IndicateFitRange</a></div><div class="ttdeci">void IndicateFitRange(const YAML::Node &amp;conf)</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00079">Draw.cxx:79</a></div></div>
<div class="ttc" id="namespaceBOSS__Afterburner_1_1Draw_html_a31262f951c66a19cac81add9f56dd777"><div class="ttname"><a href="namespaceBOSS__Afterburner_1_1Draw.html#a31262f951c66a19cac81add9f56dd777">BOSS_Afterburner::Draw::DrawDifference</a></div><div class="ttdeci">void DrawDifference(TH1 *histToDraw, TH1 *histToSubtract, Option_t *opt=&quot;E1&quot;, const char *setLog=&quot;&quot;)</div><div class="ttdoc">TEMPORARY function that serves as a fix for the bug that causes the wrong best pair to be stored...</div><div class="ttdef"><b>Definition:</b> <a href="Draw_8cxx_source.html#l00048">Draw.cxx:48</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_47d75cafac7cc64bbbc3a2eec18c6891.html">Functions</a></li><li class="navelem"><a class="el" href="Draw_8cxx.html">Draw.cxx</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
